package com.nami.gchat.infra.convertor;


import com.nami.gchat.domain.model.co.GrpMemberModel;
import com.nami.gchat.infra.orm.GroupMemberDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群成员convert
 *
 * @author lbc@test.com
 * @since 1.0.0 2022-11-29
 */
@Mapper
public interface GrpMemberConvert {

    GrpMemberConvert INSTANCE = Mappers.getMapper(GrpMemberConvert.class);

    /**
     * entity ==> vo
     *
     * @param member
     * @return
     */
    GrpMemberModel convert(GroupMemberDO member);

    /**
     * list convert
     *
     * @param members
     * @return
     */
    List<GrpMemberModel> convertList(List<GroupMemberDO> members);


}






















